<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('付款申请单打印')" />
	<style type="text/css">
	body {
			overflow-x: auto;
		}
		table {
			font-size: 12px;
			font-weight:500;
			font-family: 线体;
			margin-left: 80px;
	    	border-collapse: collapse;
		}
	    table, tr, td{
		    text-align: center;
		    width: 1100px;
		    height: 30px;
		}
		.items td{ height:30px; border: 1px solid black;}
		
		@media print{
		   body {
		       height: auto !important;
		   }
		}
	</style>
</head>
<body class="white-bg">
    <table style="margin-top: 0px;">
		<!-- 打印网页时通过hidden-print隐藏元素 -->
	    <div class="text-right hidden-print">
	        <button class="btn btn-primary" onclick="printPage()"><i class="fa fa-print"></i> 打印</button>
	    </div>
		<tr style="height: 60px;">
			<td colspan="15" style="font-size: 25px;font-family: 线体;font-weight:500;">费用报销单</td>
		</tr>
		<tr>
<!-- 			<td style="width: 7%;text-align: left;font-size: 15px;font-family: 线体;font-weight:500;"><b>附：单据<span th:text="${obj.djsl}"></span>张</b></td> -->
			<td style="width: 10%;text-align: right;font-size: 12px;font-family: 线体;font-weight:500;">&nbsp;</td>
			<td style="width: 27%;text-align: right;font-size: 12px;font-family: 线体;font-weight:500;" colspan="6" ><b><span th:text="${#dates.format(obj.bxrAt, 'yyyy年MM月dd日')}"></span></b></td>
			<td style="width: 7%;font-size: 12px;font-family: 线体;font-weight:500;" ><b>类型</b></td>
			<td style="width: 7%;text-align: left;font-size: 12px;font-family: 线体;font-weight:500;" colspan="2" th:text="${obj.type}">&nbsp;</td>
			<td style="width: 10%;font-size: 12px;font-family: 线体;font-weight:500;" colspan="4"><b>编号：</b><span th:text="${obj.orderNo}">&nbsp;</span></td>
		</tr>
	</table>
	<table class="items">
		<tr th:if="${obj.name} != null">
			<td colspan="2" style="width: 30%;"><b>项目名称</b></td>
			<td colspan="12" th:text="${obj.name}"></td>
		</tr>
		<tr>
			<td colspan="2" style="width: 30%;"><b>项目所属</b></td>
			<td style="width: 20%;" th:text="${obj.authorityName}"></td>
			<td colspan="10" style="width: 20%;"><b>付款单位</b></td>
			<td style="width: 20%;" th:with="type=${@dict.getLabel('sj_gongs','__${obj.ztdw}__')}" th:text="${type}" ></td>
		</tr>
		<tr>
			<td colspan="2" style="width: 30%;"><b>支付事项摘要说明</b></td>
			<td style="width: 20%;"><b>发票类型</b></td>
			<td colspan="10" style="width: 20%;"><b>金额</b></td>
			<td style="width: 20%;"><b>备注</b></td>
		</tr>
		<!-- 
		<tr>
			<td><b>仟</b></td>
			<td><b>佰</b></td>
			<td><b>拾</b></td>
			<td><b>万</b></td>
			<td><b>仟</b></td>
			<td><b>佰</b></td>
			<td><b>拾</b></td>
			<td><b>元</b></td>
			<td><b>角</b></td>
			<td><b>分</b></td>
		</tr> -->
		<tr th:each="lis,status:${obj.item}">
			<td colspan="2" th:text="${lis.descs}">&nbsp;</td>
			<td th:text="${lis.type}">&nbsp;</td>
			<td colspan="10">
			<span th:text="${lis.jine == null} ? '' : '¥'" />
			<span th:text="${lis.jine == null} ? '' : ${#numbers.formatDecimal(lis.jine, 1, 2)}" /></td>
			<td th:text="${lis.memo}">&nbsp;</td>
		</tr>
		<tr>
			<td colspan="2"><b>合计金额(小写)</b></td>
			<td colspan="12"><span th:text="${#numbers.formatDecimal(obj.hejexx, 1, 2)}">&nbsp;</span></td>
		</tr>
		<tr>
			<td colspan="2"><b>合计金额(大写)</b></td>
			<td colspan="12"><span th:text="${obj.hejedx}">&nbsp;</span></td>
		</tr>
	</table>
	<table style="margin-top: 15px;">
		<tr>
			<td colspan="2" style="width: 22%;text-align: left;"><b>报销人：</b><span th:text="${obj.bxr}"></span></td>
			<td colspan="2" style="width: 14%;text-align: left;"><b>财务审核：</b><span th:text="${obj.spr}"></span></td>
			<td style="width: 10%">&nbsp;</td>
			<td style="width: 10%;text-align: left;"><b>总经理审批：</b><span th:text="${obj.ldsp}"></span></td>
			<td style="width: 10%">&nbsp;</td>
		</tr>
	</table>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        function printPage() {
            window.print();
        }
    </script>
</body>
</html>